<table>
    <tbody>
        <tr>
            <td width="60px"><?php echo $form->label('CustProductSite.dispatch_from', 'Vendor'); ?></td>
            <td>
                <?php echo $form->radio('CustProductSite.dispatch_from', array(ITS_PREFIX => 'ITS', SUPPLIER_PREFIX => 'Other Vendor'), array('legend' => false)); ?>
            </td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td>
                <?php echo $form->select('CustProductSite.supplier_id', $suppliers, null, array('style' => 'display: none;')); ?>
            </td>
        </tr>
        <tr>
            <td><?php echo $form->label('Product.brand_id', 'Brand'); ?></td>
            <td><?php echo $form->select('Product.brand_id'); ?></td>
        </tr>
    </tbody>
</table>

<div class="hide">
    <?php echo $form->select('its_brand_id', $itsBrands, null, array('disabled' => true)); ?>
    <?php echo $form->select('supplier_brand_id', $supplierBrands, null, array('disabled' => true)); ?>
</div>

<script type="text/javascript">
    $j(function() {

        $j(':radio').bind('click', function() {
            var dispatch_from = $j(this).val();
            if (dispatch_from == SUPPLIER_PREFIX) {
                $j('#CustProductSiteSupplierId').show();
                $j('#ProductBrandId').html($j('#supplier_brand_id').html());
            } else {
                $j('#CustProductSiteSupplierId').hide().val('');
                $j('#ProductBrandId').html($j('#its_brand_id').html());
            }
        });
        $j(':radio[id=CustProductSiteDispatchFromIts]').click()
    })
</script>